@using Rail.Net.Core.Model
@model PriceDistance    

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>PriceDistance</legend>

    <div class="display-label">TarifNumber</div>
    <div class="display-field">@Model.TarifNumber</div>

    <div class="display-label">Class</div>
    <div class="display-field">@Model.Class</div>

    <div class="display-label">ZoneFrom</div>
    <div class="display-field">@Model.ZoneFrom</div>

    <div class="display-label">ZoneTo</div>
    <div class="display-field">@Model.ZoneTo</div>

    <div class="display-label">Price</div>
    <div class="display-field">@String.Format("{0:F}", Model.Price)</div>

    <div class="display-label">ValidFrom</div>
    <div class="display-field">@String.Format("{0:g}", Model.ValidFrom)</div>

    <div class="display-label">ValidTo</div>
    <div class="display-field">@String.Format("{0:g}", Model.ValidTo)</div>

    <div class="display-label">Ru</div>
    <div class="display-field">@(Model.Ru == null ? "None" : Model.Ru.Code)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


